package test;

public class Cat2 extends Cat{
    public Cat2() {
    }

    public Cat2(String name, int age) {
        super(name, age);
    }
    @Override
    public void eat(){
        System.out.println("一只"+getAge()+"岁的"+getName()+"在吃小饼干");
    }
}
